<?php

namespace App\Http\Models\RolePermissions;

use Illuminate\Database\Eloquent\Model;

class RolePermissions extends Model
{
    protected $table = "role_permissions";

    /**
     * 新增展示的字段
     * @var array
     */
    protected $fillable = [
        'roleid',
        'permissionsid',
        'created_at',
        'updated_at'
    ];

    /**
     * 查询显示该字段
     * @var array
     */
    protected $hidden = [
        'id',
        'roleid',
        'permissionsid',
        'created_at',
        'updated_at'
    ];
}
